debugDo
Type
command
Summary
Executes a list of statements with additional debugging information when in the debugger.
Syntax
debugDo <statementList>
Description
The debugDo command is used by LiveCode's message box and debugger.
Normally, you should use the do command; consider using debugDo only if you are writing a debugger or similar utility, or if you need to debug the statement list sent by a do command.
When the debugger is active, you can use debugDo to access local variables using the message box. If you enter a debugDo statement into the message box, and the statement refers to a local variable, the variable's value is the current value in the handler that the debugger is executing. This capability is useful if you want to track the current value of a variable in a handler you're debugging.
The details of this command may change in future releases.
Parameters
Name | Type | Description |
---|---|---|
statementList | A LiveCode statement, a container with one or more statements, or a string that evaluates to a statement. |
Examples
debugDo "beep"
debugDo commandsList
Related
function: value
glossary: variable, handler, execute, statement, local variable, debugger, debug, command
keyword: message box
property: traceReturn, traceStack, traceDelay
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
Platforms
desktop
server